package com.sansan.qiangji.service.impl.base;

import com.sansan.qiangji.entity.base.Warehouse;
import com.sansan.qiangji.entity.base.example.WarehouseExample;
import com.sansan.qiangji.mapper.base.WarehouseMapper;
import com.sansan.qiangji.service.inter.base.WarehouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WarehouseServiceImpl implements WarehouseService {

    @Autowired
    private WarehouseMapper warehouseMapper;

    @Override
    public long countByExample(WarehouseExample example) {
        return warehouseMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(WarehouseExample example) {
        return warehouseMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer warehouseId) {
        return warehouseMapper.deleteByPrimaryKey(warehouseId);
    }

    @Override
    public int insert(Warehouse record) {
        return warehouseMapper.insert(record);
    }

    @Override
    public int insertSelective(Warehouse record) {
        return warehouseMapper.insert(record);
    }

    @Override
    public List<Warehouse> selectByExample(WarehouseExample example) {
        return warehouseMapper.selectByExample(example);
    }

    @Override
    public Warehouse selectByPrimaryKey(Integer warehouseId) {
        return warehouseMapper.selectByPrimaryKey(warehouseId);
    }

    @Override
    public int updateByExampleSelective(Warehouse record, WarehouseExample example) {
        return warehouseMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(Warehouse record, WarehouseExample example) {
        return warehouseMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(Warehouse record) {
        return warehouseMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Warehouse record) {
        return warehouseMapper.updateByPrimaryKey(record);
    }
}
